import request from '@/utils/request'

// 查询机票信息列表
export function listTickets(query) {
  return request({
    url: '/airline/tickets/list',
    method: 'get',
    params: query
  })
}

// 查询机票信息详细
export function getTickets(ticketId) {
  return request({
    url: '/airline/tickets/' + ticketId,
    method: 'get'
  })
}

// 新增机票信息
export function addTickets(data) {
  return request({
    url: '/airline/tickets',
    method: 'post',
    data: data
  })
}

// 修改机票信息
export function updateTickets(data) {
  return request({
    url: '/airline/tickets',
    method: 'put',
    data: data
  })
}

// 删除机票信息
export function delTickets(ticketId) {
  return request({
    url: '/airline/tickets/' + ticketId,
    method: 'delete'
  })
}

//
